#ifndef ROV_MISC_H
#define ROV_MISC_H


#include <rov/sensors.h>

#include <netinet/in.h>


typedef struct conn_t
{
    Sensor sensor;
    int port;
    volatile int fd;
    volatile struct sockaddr_in addr;
    int (*callback)(volatile int * fd, volatile struct sockaddr_in * client, socklen_t * len, struct conn_t * arg);
}
Conn;


void * serverThreadEntry(void * conn);


#endif
